home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / Source / Chapter 2 / Test / Main.cpp next >
Encoding:
C/C++ Source or Header  |  2004-05-14  |  960 b   |  26 lines

  1. //-----------------------------------------------------------------------------
  2. // System Includes
  3. //-----------------------------------------------------------------------------
  4. #include <windows.h>
  5.  
  6. //-----------------------------------------------------------------------------
  7. // Engine Includes
  8. //-----------------------------------------------------------------------------
  9. #include "..\Engine\Engine.h"
  10.  
  11. //-----------------------------------------------------------------------------
  12. // Entry point for the application.
  13. //-----------------------------------------------------------------------------
  14. int WINAPI WinMain( HINSTANCE instance, HINSTANCE prev, LPSTR cmdLine, int cmdShow )
  15. {
  16.     // Create the engine setup structure.
  17.     EngineSetup setup;
  18.     setup.instance = instance;
  19.     setup.name = "Framework Test";
  20.  
  21.     // Create the engine (using the setup structure), then run it.
  22.     new Engine( &setup );
  23.     g_engine->Run();
  24.  
  25.     return true;
  26. }